package cn.edu.sdjzu.xg.eagle.dao;

import cn.edu.sdjzu.xg.eagle.entity.Student;
import cn.edu.sdjzu.xg.eagle.exception.BaseException;
import cn.edu.sdjzu.xg.eagle.util.Condition;

import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException;

public interface StudentDao {
    boolean addStudent(Condition condition,Student student)throws SQLException,BaseException,InvocationTargetException;
    Student find(Condition condition,Long id)throws SQLException,BaseException,InvocationTargetException;
    boolean update(Condition condition,Student student)throws SQLException,BaseException,InvocationTargetException;
    boolean delete(Condition condition,Integer id)throws SQLException,BaseException,InvocationTargetException;
    Student findById(Condition condition,Integer id)throws SQLException,BaseException,InvocationTargetException;

}
